<template>
  <div class="hello">
    111
  </div>
</template>

<script>
export default {
  name: 'About',
  data(){
    return {
    }
  },
  methods:{
  },
  computed:{
  },
  beforeRouteEnter (to, from, next) {
    if(to.meta.isAuth){
      if(localStorage.getItem('school') === 'nihao'){
        next();
      }else {
        alert('你没有权限')
      }
    }else {
      next();
    }
  },
  beforeRouteLeave () {

  }
}
</script>

<style scoped>
</style>
